<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>添加流程分类</title>
		<link href="css/table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="js/openwindow.js"></script>
		<script type="text/javascript">

	function updateflowtype(){
		var title=$("#title").val();
		if(title==''||title=='null'){
			alert('请添加主题')
			return;
		}
		$.post("updateFlowType.action",$("form").serialize(),function(data){
					if(data=='success'){
						alert("更新成功");
						window.close();
						var currentPage=$("#currentPage").val();
						window.opener.page(currentPage);
					}else{
						alert("更新失败！");
					}
				});
	}
</script>
	</head>
	<body>
	   <input type="hidden" id="currentPage" value="${currentPage}">
		<table align="center" border="0" cellpadding="0" cellspacing="0"
			width="98%">
			<tbody>
				<tr>
					<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
					<td style="background: url('image/wsoa_window_002.gif');">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td align="center"
										style="background: url('image/wsoa_window_002.gif');"
										width="10">
										<img src="image/center_19.gif"></td>
										<td>工作流程 &gt; 流程管理 &gt; 流程分类&gt;修改</td>
									<td align="center"
										style="background: url('image/wsoa_window_002.gif');"></td>
									<td></td>
								</tr>
							</tbody>
						</table>
					</td>
					<td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
				</tr>
				<tr>
					<td style="background: url('image/wsoa_window_010.gif');" width="1">
						&nbsp;
					</td>
					<td>
					
						<form name="saveFlowTypeForm" id="saveFlowType" method="post" action="">
							<span class="font12"> </span>
							<input type="hidden" name="flowType.id" value="${flowType.id}">
							<input  type="hidden" name="flowType.username" value="${flowType.username }">
							<input  type="hidden" name="flowType.userId" value="${flowType.userId}">
							<table style="width: 99%;" align="center">
								<tbody>
									<tr>
										<td>
											<table style="width: 100%;" class="table5 bgcolor5"
												align="center">
												<tbody>
												<tr>
													<td class="table5 bgcolor5" align="right" width="100">流程分类</td>
													<td class="table5" align="left"><input name="flowType.name" value="${flowType.name}" id="title" maxlength="50"   title="该输入项的最大长度是100" style="width: 90%" type="text"></td>
												</tr>
												<tr>
													<td class="table5 bgcolor5" align="right" width="100">备  注 </td>
													<td class="table5" align="left"><textarea name="flowType.content"  onkeyup="textLength(this,200)"  id="content"
																style="width: 95%; height: 200px;">${flowType.content}</textarea></td>
												</tr>
													
												</tbody>
											</table>
										</td>
									</tr>

									<tr>
										<td>
											<table style="width: 100%;" class="table5 bgcolor5"
												align="center">
												<tbody>
												</tbody>
											</table>
										</td>
									</tr>
								</tbody>
							</table>
							<table style="width: 99%;" align="center">
								<tbody>
									<tr>
										<td align="center">
											<span id="errorId"></span>
										</td>
									</tr>
									<tr>
										<td align="center">
											<input accesskey="t" value="提交" style="background: url('image/button_02.gif');" onclick="updateflowtype();" class="button_02" type="button">
											<input class="button_02" value="取消" accesskey="c" style="background: url('image/button_02.gif');" onclick="window.close();" type="button">
										</td>
									</tr>
								</tbody>
							</table>
						</form>
					</td>
					<td style="background: url('image/wsoa_window_006.gif');" width="1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td height="1" width="1">
						<img src="image/wsoa_window_009.gif" height="16" width="14">
					</td>
					<td style="background: url('image/wsoa_window_008.gif');"
						height="1"></td>
					<td height="1" width="1">
						<img src="image/wsoa_window_007.gif" height="16" width="12">
					</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>